package com.zj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 用户信息实体
 *
 * @author zzj
 * @date 2023/02/22
 */
@Data
@TableName("user_info")
public class UserInfo {
    //如果主键不是默认id  需要声明主键 否则使用baseMapper 中的有关id的方法会报错
    // Invalid bound statement (not found)
    @TableId
    @TableField("user_id")
    private Long userId;
    private String nickname;
    private String address;
    @TableField("create_time")
    private Timestamp createTime;
    private Integer userStatus;
    private Integer isDelete;
    private String number;
    private String role;

}
